package com.example.leave.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
import java.sql.Timestamp;

@Data
@Entity
@Table(name = "ru_operation_history", schema = "public")
public class LeaveFormOperationHistory {
    @Id
    private String id;

    @Column(name = "leave_form_id")
    private String leaveFormId;

    @Column(name = "category")
    private String category;

    @Column(name = "reason")
    private String reason;

    @Column(name = "start_time")
    private Timestamp startTime;

    @Column(name = "end_time")
    private Timestamp endTime;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "user_id")
    private String userId;


    @Column(name = "operator")
    private String operator;


    @Column(name = "action")
    private int action;

    @Column(name = "operation_time")
    private Timestamp operationTime;
}